<html>
    <head>
        <title> /!\ Welcome to MegaSoft ERP SYSTEM </title>
		<meta name="layout" content="main" />
    </head>
    <body>
        <h1 style="margin-left:20px;">Search</h1>
        <div class="dialog" style="margin-left:20px;width:60%;">
          <form action="/MegaSoft/search/show">
            <label for="keyword"> Search for project: </label>
            <input type="text" name="keyword" id="keyword" value="" />
            <input type="submit" value="Search" />
          </form>
          <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
          </g:if>
          <g:if test="${courseList}">
            <h2>Courses</h2>
            <ul>
              <g:each var="m" in="${courseList}">
                <li>${m?.name}</li>
              </g:each>
            </ul>
          </g:if>
          <g:if test="${projectList}">
            <h2>Projects</h2>
            <ul>
              <g:each var="m" in="${projectList}">
                <li>${m?.name}</li>
              </g:each>
            </ul>
          </g:if>
        </div>
    </body>
</html>
